package com.atguigu.java;
/*
 * 
 * 
 * 
 * 
 * 
 */
public class UserTest {

		//属性
	String name;
	int age;
	boolean isMale;
	
	//局部变量
	public  void talk(String language){
		System.out.println("我们使用" + language + "来交流");
	}
	
}

class Customer{
	
		//属性
		String   name;
		int age;
		boolean isMale;
		
		//方法
		public void eat(){
				System.out.println("客户吃饭");
		}
		
		public void sleep(int hour){
				System.out.println("休息了" + hour + "个小时");
		}
		
		public String getName(){
				return name;
		}
		
		public String getNation(String nation){
				String info = "我的国籍是" + nation;
				return info;
		}
		
}
